import axios from '../../../axios.js'
export default{
    //获取保险产品
    getProducts(params) {
        
        return axios({
            url: "/products/getProducts",
            method: "get",
            params
        })
    },
    //修改产品数据
    modifyProducts(data) {
        return axios({
            url: "/products/modifyProducts",
            method: "post",
            data
        })
    },
    //删除保险
    deleteProducts(data) {
        console.log('-----',data);
        return axios({
            url: "/products/deleteProducts",
            method: "post",
            data
        })
    },
    //新增保险
    addProducts(data) {
        return axios({
            url: "/products/addProducts",
            method: "post",
            data
        })
    },
    //获取全部商品
    getProductsall(params){
        return axios({
            url:'/products/getProductsall',
            method:'get',
            params
        })
    }
}
